package com.xbongbong.pro.process.pojo.dto;

import com.xbongbong.pro.message.pojo.PushRefTypePojo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 钉钉待办实例
 * @author xingxing.xiao
 * @date 2019/08/02 21:10
 */
@Getter
@Setter
@ToString
public class WorkrecordInstanceDTO {

    private String corpid;

    /**
     * 待办模板code
     */
    private String dingtalkProcessCode;

    /**
     * 表单名称(作为实例的title)
     */
    private String formName;
    /**
     * 内容提要
     */
    private String summaryTitle;

    /**
     * 提交人id
     */
    private String userId;

    /**
     * 提交人姓名
     */
    private String userName;

    /**
     * 提交时间(时间戳)
     */
    private Integer submitTime;

    /**
     * web端系统内跳转所需参数(复用消息的)
     */
    PushRefTypePojo.Options options;

    public WorkrecordInstanceDTO() {
    }

    public WorkrecordInstanceDTO(String corpid, String dingtalkProcessCode, String formName, String summaryTitle, String userId, String userName, Integer submitTime, PushRefTypePojo.Options options) {
        this.corpid = corpid;
        this.dingtalkProcessCode = dingtalkProcessCode;
        this.formName = formName;
        this.summaryTitle = summaryTitle;
        this.userId = userId;
        this.userName = userName;
        this.submitTime = submitTime;
        this.options = options;
    }
}
